﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Volo.Abp.Data;

namespace Niti.OrderManage.DTO
{
  public  class SupplierDto
    {
        /// <summary>
        /// 供应商唯一编号
        /// </summary>
        [Required]
        [StringLength(255)]
        public string Code { get; set; } 
        /// <summary>
        /// 供应商的名称
        /// </summary>
        [Required]
        [StringLength(200)]
        public string SName { get; set; }
        /// <summary>
        /// 供应商合作开始时间
        /// </summary>
        [Required]
        public DateTime BeginTime { get; set; }
        /// <summary>
        /// 供应商合作结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 供应商联系人
        /// </summary>
        [Required]
        [StringLength(100)]
        public string ContactName { get; set; }
        /// <summary>
        /// 供应商联系电话
        /// </summary>
        [Required]
        [StringLength(20)]
        public string ContactNumber { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        public DateTime CreationTime { get; set; } 
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }
    }

  public class AddSupplierDto
    {
        /// <summary>
        /// 供应商唯一编号
        /// </summary>
        [Required]
        [StringLength(255)]
        public string Code { get; set; }
        /// <summary>
        /// 供应商的名称
        /// </summary>
        [Required]
        [StringLength(200)]
        public string SName { get; set; }
        /// <summary>
        /// 供应商合作开始时间
        /// </summary>
        [Required]
        public DateTime BeginTime { get; set; }
        /// <summary>
        /// 供应商合作结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 供应商联系人
        /// </summary>
        [Required]
        [StringLength(100)]
        public string ContactName { get; set; }
        /// <summary>
        /// 供应商联系电话
        /// </summary>
        [Required]
        [StringLength(20)]
        public string ContactNumber { get; set; }


    }
}
